package ynu.beggar.server.service;

import org.springframework.data.domain.Pageable;
import ynu.beggar.server.entities.DO.ForumPostCreateDO;
import ynu.beggar.server.entities.DO.ForumPostDelDO;
import ynu.beggar.server.entities.DO.UserBasicInfoDO;
import ynu.beggar.server.utils.JsonData;

public interface ForumService {

    JsonData queryPostPage(Pageable pageable, String type);

    JsonData createPost(ForumPostCreateDO forumPostCreateDO, UserBasicInfoDO userBasicInfoDO);

    JsonData deletePost(ForumPostDelDO forumPostDelDO, UserBasicInfoDO userBasicInfoDO);

    JsonData queryMyPostPage(Pageable pageable, UserBasicInfoDO userBasicInfoDO);

    JsonData queryPostDetail(int postId);

    JsonData queryBulletins();
}
